import {
    Dashbaord,
    Login,
    NotFound,
    Settings,
    ArticleList,
    Notification,
    Authority

} from '../views/index'
import Edit from '../views/Article/Edit'


export const mainRouter= [
    {
       pathname:'/login' ,
       component:Login
    },
    {
        pathname:'/404' ,
        component:NotFound
     },
    
]
export const adminRouter= [
    {
       pathname:'/admin/dashboard' ,
       component:Dashbaord,
       title:'仪表盘',
       isNav:true,
       icon:'dashboard',
       roles:['001','002','003']
      
    },
    {
      pathname:'/admin/article' ,
      component:ArticleList,
      title:'文章管理',
      exact:true,
      isNav:true,
      icon:'unordered-list',
      roles:['001','002']
   },
   {
      pathname:'/admin/article/edit/:id' ,
      component:Edit,
      roles:['001']
   },
   {
      pathname:'/admin/notification' ,
      component:Notification,
      roles:['001','002','003']
   },
   {
      pathname:'/admin/authority' ,
      component:Authority,
      roles:['001','002','003']
   },
    {
        pathname:'/admin/settings' ,
        component:Settings,
        title:'设置',
        isNav:true,
        icon:'setting',
        roles:['001','002']
     },
    
    
    
     
]
